<?php

	$sendTo = "support@emartaustralia.com.au";
	$subject = $_POST["cmbCategory"];
	
	$headers = "From: Inquiry <support@emartaustralia.com.au>\r\n";
	$headers .= "Reply-To:" . $_POST["txtEmail"] . "\r\n";
	$headers .= "Return-path: " . $_POST["txtEmail"];
	
	$body = $_POST["txtMessage"]. "\r\n\n";
	
	$body .= $_POST["txtEmail"] . "\r\n";
	$body .= $_POST["txtName"];
	
	//mail($sendTo, $subject, $body, $headers);
	ini_set("sendmail_from", "support@emartaustralia.com.au"); 
 	mail($sendTo, $subject, $body, $headers, "-fsupport@emartaustralia.com.au");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Emart Australia</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script type="text/javascript" src="js/main.js"></script>
</head>
<body onload="MM_preloadImages('images/btnHome_ov.jpg','images/btnServices_ov.jpg','images/ourPackages_ov.jpg','images/btnContact_ov.jpg')">
<table width="950" border="0" cellpadding="0" cellspacing="0" align="center">
    <!--DWLayoutTable-->
    <tr>
        <td width="950" valign="top" class="header"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                    <td height="80" colspan="2" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
                </tr>
                <tr>
                    <td height="31" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <!--DWLayoutTable-->
                            <tr>
                                <td width="156" height="32" valign="top"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/btnHome_ov.jpg',1)"><img src="images/btnHome.jpg" name="Image1" width="166" height="32" border="0" id="Image1" /></a></td>
                                <td width="166" valign="top" style="padding-left:2px"><a href="services.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/btnServices_ov.jpg',1)"><img src="images/btnServices.jpg" name="Image2" width="166" height="32" border="0" id="Image2" /></a></td>
                                <td width="166" valign="top" style="padding-left:2px"><a href="packages.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/ourPackages_ov.jpg',1)"><img src="images/ourPackages.jpg" name="Image3" width="166" height="32" border="0" id="Image3" /></a></td>
                                <td width="166" valign="top" style="padding-left:2px"><img src="images/btnContact_ov.jpg" name="Image4" width="166" height="32" border="0" id="Image4" /></td>
                                <td width="286">&nbsp;</td>
                            </tr>
                        </table></td>
                </tr>
                <tr>
                    <td height="145" colspan="2" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
                </tr>
                <tr>
                    <td width="551" height="47" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="399" valign="top"><a href="http://www.emartaustralia.com.au/" target="_blank"><img src="images/spacer.gif" width="200" height="30" border="0" /></a></td>
                </tr>
        </table></td>
    </tr>
    <tr>
        <td height="207" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                    <td width="950" height="30" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <!--DWLayoutTable-->
                            <tr>
                                <td width="4" height="32" valign="top"><img src="images/headerLeft.gif" width="4" height="32" /></td>
                                <td width="942" valign="top" class="title">Contact Us</td>
                                <td width="4" valign="top"><img src="images/headerRight.gif" width="4" height="32" /></td>
                            </tr>
                        </table></td>
                </tr>
                <tr>
                    <td height="10" valign="top"><img src="images/spacer.gif" height="10" /></td>
                </tr>
                <tr>
                    <td height="177" valign="top"  class="contentPane" ><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <!--DWLayoutTable-->
                            <tr>
                                <td width="648" height="51" valign="top">
                                Your message has been sent...Thank you                             </td>
                                <td width="270" rowspan="2" align="center" valign="top" style="padding-top:30px"><img src="images/contact.jpg" width="197" height="132" /></td>
                            </tr>
                            <tr>
                                <td height="16" valign="top" style="padding-top:15px">You can contact us through our hot line as well : 
                                <strong>042 1345364</strong>
                                </td>
                            </tr>
                    </table></td>
                </tr>
            </table></td>
    </tr>
    <tr>
        <td height="29" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                    <td width="950" height="29" valign="top" class="footer"><a href="index.html">home</a>&nbsp;|&nbsp;<a href="services.html">our services</a>&nbsp;|&nbsp;<a href="packages.html">our packages</a>&nbsp;|&nbsp;<a href="contact.html">contact us</a></td>
                </tr>
            </table></td>
    </tr>
</table>
</body>
</html>
